package com.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.dao.impl.AdepartDaoImpl;
import com.model.Adepart;
import com.service.AdepartManager;

@Component("adepartManager")
public class AdepartManagerImpl implements AdepartManager {
	private AdepartDaoImpl adepartDao;

	public AdepartDaoImpl getAdepartDao() {
		return adepartDao;
	}

	@Resource
	public void setAdepartDao(AdepartDaoImpl adepartDao) {
		this.adepartDao = adepartDao;
	}

	public List<Adepart> getDepartList() {
		return adepartDao.getDepartList();
	}
	

	public String getDepartCodeByName(String departName) {
		return adepartDao.getDepartCodeByName(departName);
	}

}
